package com.alphas.openapiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

public class SignUtils {
    public static String genSign(String body,String secretKey){
        Digester sha256 = new Digester(DigestAlgorithm.SHA256);
        String content = body + "." + secretKey;
// 53456e6438fcec231413a94a4666a0f9ffbc297d518bf2035648b4203b2f71c8
        String sign = sha256.digestHex(content);
//        System.out.println("这是客户端的签名"+ sign);
        return sign;
    }
}
